package per.ethan.cloud.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import per.ethan.cloud.consumer.service.impl.PaymentServiceFallbackImpl;

/**
 * @author Ethan
 * @date 2020/04/12 15:17
 */
@FeignClient(value = "cloud-alibaba-provider", contextId = "payment", path = "/payment", fallback = PaymentServiceFallbackImpl.class)
public interface PaymentService {

    @GetMapping(value = "/fallbackPayment")
    String fallbackProvider();

}
